package efg.library.IF;

import java.io.Serializable;
import java.util.HashSet;

public class CustomerDAO implements Serializable
{   
  private static final long serialVersionUID = 2403140518716476898L;
  private String  name = null;
  private int  credits = 0;
  private HashSet<String> titles = new HashSet<String>();
  
  public void setName(   String newName)            { name    = newName;    }
  public void setCredits(int newCredits)            { credits = newCredits; } 
  public void addTitle  (String newTitle)           { titles.add(newTitle); }  
  public void setBooks  (HashSet<String> newTitles) { titles  = newTitles;  }
  
  public String getName()           { return name;   }
  public int getCredits()           { return credits;}
  public HashSet<String> getBooks() { return titles; }
}